package org.infodavid.common.model.impl.criteria;

import org.infodavid.common.model.criteria.ITemplateVersionCriteria;
import org.infodavid.common.model.impl.criteria.ExtendedCriteriaImpl;

/**
 * The Class TemplateVersionCriteriaImpl.
 */
public class TemplateVersionCriteriaImpl extends ExtendedCriteriaImpl implements
    ITemplateVersionCriteria {

	/** The Constant serialVersionUID. */
	private static final long serialVersionUID = -5781804069003150085L;

	/** The Template key. */
	private Long TemplateKey = null;

	/** The revision. */
	private Integer revision = null;

	/** The name pattern. */
	private String namePattern = null;

	/**
	 * The Constructor.
	 */
	public TemplateVersionCriteriaImpl() {
		super();
	}

	/*
	 * (non-Javadoc)
	 * @see org.infodavid.common.model.criteria.ITemplateVersionCriteria#getTemplateKey()
	 */
	public Long getTemplateKey() {
		return TemplateKey;
	}

	/*
	 * (non-Javadoc)
	 * @see org.infodavid.common.model.criteria.ITemplateVersionCriteria#setTemplateKey(java.lang.Long)
	 */
	public void setTemplateKey(final Long value) {
		TemplateKey = value;
	}

	/*
	 * (non-Javadoc)
	 * @see org.infodavid.common.model.criteria.ITemplateVersionCriteria#getRevision()
	 */
	public Integer getRevision() {
		return revision;
	}

	/*
	 * (non-Javadoc)
	 * @see org.infodavid.common.model.criteria.ITemplateVersionCriteria#setRevision(java.lang.Integer)
	 */
	public void setRevision(final Integer value) {
		revision = value;
	}

	/*
	 * (non-Javadoc)
	 * @see org.infodavid.common.model.impl.criteria.SearchCriteriaImpl#toString()
	 */
	@Override
	public String toString() {
		final StringBuilder builder = new StringBuilder();

		builder.append(super.toString());
		builder.append("[namePattern=");
		builder.append(namePattern);
		builder.append(", TemplateKey=");
		builder.append(TemplateKey);
		builder.append(", revision=");
		builder.append(revision);
		builder.append("]");

		return builder.toString();
	}

	/*
	 * See super class or interface. (non-Javadoc)
	 * @see org.infodavid.common.model.criteria.ITemplateCriteria#getNamePattern()
	 */
	public String getNamePattern() {
		return namePattern;
	}

	/*
	 * See super class or interface. (non-Javadoc)
	 * @see org.infodavid.common.model.criteria.ITemplateCriteria#setNamePattern(java.lang.String)
	 */
	public void setNamePattern(final String value) {
		namePattern = value;
	}
}
